.post {
    .custom-block.tip,
    .custom-block.info,
    .custom-block.warning,
    .custom-block.danger {
        margin: 1rem 0;
        border-left: 0.5rem solid;
        padding: 0.1rem 1.5rem;
        overflow-x: auto;
    }

    .custom-block.tip {
        background-color: #f3f5f7;
        border-color: var(--c-brand);
    }

    .custom-block.info {
        background-color: #f3f5f7;
        border-color: var(--c-text-light-2);
    }

    .custom-block.warning {
        border-color: #e7c000;
        color: #6b5900;
        background-color: rgba(255, 229, 100, 0.3);
    }

    .custom-block.warning .custom-block-title {
        color: #b29400;
    }

    .custom-block.warning a {
        color: var(--c-text);
    }

    .custom-block.danger {
        border-color: #c00;
        color: #4d0000;
        background-color: #ffe6e6;
    }

    .custom-block.danger .custom-block-title {
        color: #900;
    }

    .custom-block.danger a {
        color: var(--c-text);
    }

    .custom-block.details {
        position: relative;
        display: block;
        border-radius: 2px;
        margin: 1.6em 0;
        padding: 1.6em;
        background-color: #eee;
    }

    .custom-block.details h4 {
        margin-top: 0;
    }

    .custom-block.details figure:last-child,
    .custom-block.details p:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .custom-block.details summary {
        outline: none;
        cursor: pointer;
    }

    .custom-block-title {
        margin-bottom: -0.4rem;
        font-weight: 600;
    }
}